﻿
using System; 
using System.Text;
using System.Collections.Generic; 
using System.Data;
using Kevin.Framework.Data.OrmMapping;
using Kevin.Framework.Validation;
/*------------------------------------------------------------------------
   苏州捷安信息科技有限公司 版权所有			
   文件名: TU_RoleFunction.cs
   作 者 : 席吉波
   日 期 : 2012-10-16
   备 注 : 当您对本文件更改时请写明修改人、修改日期以及事由
  ------------------------------------------------------------------------
*/
namespace JOIN.Rights.Model{
	 	//TU_RoleFunction
		[Serializable]
	[TableMapping("TU_RoleFunction")]
	public class RoleFunctionInfo : EntityBase
	{
		#region Constructor
		
		public RoleFunctionInfo()
			:this("")
		{}
		public RoleFunctionInfo(string connectionKey)
			:base(connectionKey)
		{}
		
		#endregion
   		
      			
		private int _id;     
		/// <summary>
		/// ID
        /// </summary>		
		[FieldMapping("ID" )]		
		[NotNullValidator(MessageTemplate="不能为空")]
				public int ID
        {
            get
            { 
            	return _id; 
            }
            set
            { 
            	if(_id != value)
            	{            	
            		base.OnPropertyChanged("ID", _id, value);
            		_id = value; 
            	}
            }
        }        
				
		private string _roleid;     
		/// <summary>
		/// RoleID
        /// </summary>		
		[FieldMapping("RoleID" )]		
				public string RoleID
        {
            get
            { 
            	return _roleid; 
            }
            set
            { 
            	if(_roleid != value)
            	{            	
            		base.OnPropertyChanged("RoleID", _roleid, value);
            		_roleid = value; 
            	}
            }
        }        
				
		private string _functionid;     
		/// <summary>
		/// FunctionID
        /// </summary>		
		[FieldMapping("FunctionID" )]		
				public string FunctionID
        {
            get
            { 
            	return _functionid; 
            }
            set
            { 
            	if(_functionid != value)
            	{            	
            		base.OnPropertyChanged("FunctionID", _functionid, value);
            		_functionid = value; 
            	}
            }
        }        
		   
	}
}